class CreateMicrpposts < ActiveRecord::Migration[6.1]
  def change
    create_table :micrpposts do |t|
      t.string :title, null: false, limit: 256, default: '', comment: '标题'
      t.text :content, null: false, comment: '内容'
      t.integer :user_id, null: false, default: 0, comment: '用户id'
      t.timestamps null: false
    end
  end
end
